// Package config
/**
* @Project : geektime-basic-go-study
* @File    : types.go
* @IDE     : GoLand
* @Author  : Tvux
* @Date    : 2024/9/25 21:02
**/

package config

type Config struct {
	DBConf    DbConfig    `yaml:"dbConf"`
	RedisConf RedisConfig `yaml:"redisConf"`
	AuthConf  AuthConfig  `yaml:"authConf"`
	Secure    bool        `yaml:"secure"`
	HttpOnly  bool        `yaml:"httpOnly"`
}

type DbConfig struct {
	DSN                  string `yaml:"dsn"`
	ParameterizedQueries bool   `yaml:"parameterizedQueries"`
}

type RedisConfig struct {
	DSN string `yaml:"dsn"`
}

type AuthConfig struct {
	SecretKey string `yaml:"secretKey"`
}
